package com.zsoft.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller(value = "model")
@RequestMapping(value = "/")
public class ModelController {
	@RequestMapping(value = "/{fpath}/{path}")
	public ModelAndView fck(@PathVariable String fpath, @PathVariable String path, HttpServletRequest request,
			HttpServletResponse response) {
		ModelAndView mv = new ModelAndView(fpath + "/" + path);
		System.out.println(path);
		return mv;
	}
}
